"""创建分页配置类"""
from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    # 默认每页条数`
    page_size = 2
    # 前端访问指明每页数量的参数名
    page_size_query_param = "page_size"
    max_page_size = 20
